<?php
class Pageley_Basic_Domain_Currency extends Pageley_Domain_AbstractEnumeration {
	public static $EUR;
	public static $USD;
	public static $GBP;
	
	public static $VALUES;

	private $symbol;

	public function __construct($name, $index, $symbol) {
		parent::__construct($name, $index);
		$this->symbol = $symbol;
		self::$VALUES->add($this);
	}

	public function getSymbol() {
		return $this->symbol;
	}
	
	public static function values() {
	    return self::$VALUES;
	}
}
Pageley_Basic_Domain_Currency::$VALUES = new Pageley_Util_ArrayMap();
Pageley_Basic_Domain_Currency::$EUR = new Pageley_Basic_Domain_Currency("EUR", 1, "€");
Pageley_Basic_Domain_Currency::$USD = new Pageley_Basic_Domain_Currency("USD", 2, "$");
Pageley_Basic_Domain_Currency::$GBP = new Pageley_Basic_Domain_Currency("GBP", 3, "£");